package com.you.rpc.client;

import com.you.rpc.entity.ResponseCommand;

import java.util.concurrent.TimeUnit;

public interface InvokeFuture {

    ResponseCommand waitResponse(long timeout, TimeUnit timeUnit) throws InterruptedException;

    ResponseCommand waitResponse() throws InterruptedException;

    void putResponse(ResponseCommand responseCommand);
}
